package one.stand.fallback;

import com.jmp.base.dto.*;
import com.jmp.feign.ShopCartFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

@Component
public class ShopCartFallback implements ShopCartFeign {
    @Override
    public ResultModel<ShopCartListVo> list(ShopCartListDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel add(ShopCartAddDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel remove(ShopCartRemoveDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel edit(ShopCartEditDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<ShopCartCountVo> count(ShopCartCountDto request) {
        return ResultModel.faultTolerant();
    }
}
